package com.mmr.dxp.mapper;

import com.mmr.dxp.domain.OrganInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface OrganInfoMapper {
    @Select("SELECT ID, NAME, CODE FROM ORG WHERE CODE = #{code}")
    OrganInfo selectByCode(String code);
    @Select("SELECT ID, NAME, CODE FROM ORG WHERE ID = #{id}")
    OrganInfo selectByPrimaryKey(String id);
}
